const path=require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    mode:"development",
    entry:"./time.ts",
    output:{
        path: path.resolve(__dirname, 'dist/'),
        filename: "[name].bundle.js"
    },
    module: {
        rules: [
          {
            test: /\.ts$/,
            loader:"ts-loader"
          }
        ]
    },
    plugins: [new HtmlWebpackPlugin({
        template:"./index.html"
    })]
}